// 命名空间
var cWidth = (cc.winSize.width-1280)/2;
var hall = {};

// 所有代码
hall.mainPath = 'modules/main/hall/';
hall.srcPath = hall.mainPath + 'src/';
hall.srcSuffixPath = hall.srcPath + app.classExtendSuffix + "/";
hall.src = [
    'modules/main/hall/src/HallBoard.js',
    'modules/main/hall/src/ClubUnit.js',
    'modules/main/hall/src/CoinUnit.js',
    'modules/main/hall/src/DiamondUnit.js',
    'modules/main/hall/src/HallLv3Unit.js',
    'modules/main/hall/src/HallLv2Unit.js',
    'modules/main/hall/src/PlayerInfoUnit.js',
    'modules/main/hall/src/MoneyUnit.js',
    'modules/main/hall/src/SpeakerUnit.js',
    'modules/main/hall/src/LoadingDialog.js',
    'modules/main/hall/src/NormalDialog.js',
    'modules/main/hall/src/DownLoadingDialog.js',
    'modules/main/hall/src/AlertDialog.js',

    hall.srcPath + 'NoticeBtnUnit.js',

    hall.srcPath + 'PlayerInfoCommonWindow.js',
    hall.srcPath + 'BDIphoneWindow.js',
    hall.srcPath + 'CertifiedWindow.js',
    hall.srcPath + 'NoticeWindow.js',
    hall.srcPath + 'PlayerInfoLocationWindow.js',
    hall.srcPath + 'RoomQuitWindow.js',
    hall.srcPath + 'RulerWindow.js',
    hall.srcPath + 'SettingWindow.js',
    hall.srcPath + 'SettingWindow_qylds.js',
    hall.srcPath + 'ShareWindow.js',
    hall.srcPath + 'ShopWindow.js',
    hall.srcPath + 'CoinShopWindow.js',
    hall.srcPath + 'WanFaWindow.js',
    hall.srcPath + 'JieSuanWindow.js',
    hall.srcPath + 'PlayBackWindow.js',
    hall.srcPath + 'ZongJieSuanWindow.js',
    hall.srcPath + 'JoinRoomWindow.js',
    hall.srcPath + 'YQHWindow.js',

    // /**
    //  * 湘西扩展
    //  */
    // hall.srcSuffixPath + 'RulerWindow_hunan.js',
    /**
     * 创建房间
     */
    hall.srcPath + 'create/Config.js',
    hall.srcPath + 'create/HallCreateRoomWindow.js',

    // hall.srcPath + 'create/OptionsNodeUnit.js',
    // hall.srcPath + 'create/OptionTitleUnit.js',
    /**
     * 战绩
     */
    hall.srcPath + 'record/RecordWindow.js',
    hall.srcPath + 'record/RecordCellItem.js',
    hall.srcPath + 'record/RecordDetailWindow.js',
    hall.srcPath + 'record/RecordDetailCellItem.js',
    hall.srcPath + 'record/RecordPlayBackWindow.js',
];

// 所有资源
hall.resPath = hall.mainPath + 'res/';
hall.res = {
    Default_Font: 'res/fonts/FZZY.TTF',
    HallBoard_json: 'modules/main/hall/res/HallWindow.json',
    ClubUnit_json: 'modules/main/hall/res/ClubUnit.json',
    CoinUnit_json: 'modules/main/hall/res/CoinUnit.json',
    DiamondUnit_json: 'modules/main/hall/res/DiamondUnit.json',
    // HallLv2Unit_json: 'modules/main/hall/res/HallLv2Unit.json',
    // HallLv3Unit_json: 'modules/main/hall/res/HallLv3Unit.json',
    PlayerInfoUnit_json: 'modules/main/hall/res/PlayerInfoUnit.json',
    MoneyUnit_json: 'modules/main/hall/res/MoneyUnit.json',
    SpeakerUnit_json: 'modules/main/hall/res/SpeakerUnit.json',
    DownLoadingDialog_json: 'modules/main/hall/res/DownLoadingDialog.json',
    Loading_json: 'modules/main/hall/res/LoadingDialog.json',
    MessageBox_json: 'modules/main/hall/res/MessageBox.json',
    NoticeBtnUnit_json: hall.resPath + 'NoticeBtnUnit.json',

    loadingAnim_json: hall.resPath + 'image/loading/loading.json',
    /**
     * 窗口
     */
    PlayerInfoCommonWindow_json: hall.resPath + 'PlayerInfoCommonWindow.json',
    BDIphoneWindow_json: hall.resPath + 'BDIphoneWindow.json',
    CertifiedWindow_json: hall.resPath + 'CertifiedWindow.json',
    NoticeWindow_json: hall.resPath + 'NoticeWindow.json',
    PlayerInfoLocationWindow_json: hall.resPath + 'PlayerInfoLocationWindow.json',
    RoomQuitWindow_json: hall.resPath + 'RoomQuitWindow.json',
    RulerWindow_json: hall.resPath + 'RulerWindow.json',
    SettingWindow_json: hall.resPath + 'SettingWindow.json',
    ShareWindow_json: hall.resPath + 'ShareWindow.json',
    WanFaWindow_json: hall.resPath + 'WanFaWindow.json',
    JoinRoomWindow_json: hall.resPath + 'JoinRoomWindow.json',
    YQHWindow_json: hall.resPath + 'YQHWindow.json',

    hallbg0: hall.resPath + 'bg/hallbg1.png',
    hallbg1: hall.resPath + 'bg/hallbg2.png',
    hallbg2: hall.resPath + 'bg/hallbg3.png',
    /**
     * 创建
     */
    // CreateRoomWindow_json: hall.resPath + 'create/CreateRoomWindow.json',
    // OptionTitleUnit_json: hall.resPath + 'create/OptionTitleUnit.json',
    // OptionCheckUnit_json: hall.resPath + 'create/OptionCheckUnit.json',
    // OptionCardUnit_json: hall.resPath + 'create/OptionCardUnit.json',
    // OptionPopUnit_json: hall.resPath + 'create/OptionPopUnit.json',
    // ListBtnUnit_json: hall.resPath + 'create/ListBtnUnit.json',
    // ListBtnScrollUnit_json: hall.resPath + 'create/ListBtnScrollUnit.json',
    // PopTiShiUnit_json: hall.resPath + 'create/PopTiShiUnit.json',
    /**
     * 战绩
     */
    RecordCellUnit_json: hall.resPath + 'record/RecordCellUnit.json',
    RecordDetailCellUnit_json: hall.resPath + 'record/RecordDetailCellUnit.json',
    RecordWindow_json: hall.resPath + 'record/RecordWindow.json',
    RecordDetailWindow_json: hall.resPath + 'record/RecordDetailWindow.json',
    RecordPlayBackWindow_json: hall.resPath + 'record/RecordPlayBackWindow.json',
    /**
     * 粒子
     */
    lizi_anniu: hall.resPath + 'lizi/lizi_anniu01.plist',

    //loadinganimation
    LoadingAnimation: hall.resPath + 'image/loading/loadingAni.json',

    //rouguang_png: hall.resPath + 'image/liuguang/rouguang.png',
    //yingguang_png: hall.resPath + 'image/liuguang/yingguang.png',
};

hall.spines = [
     'dating'
];

for (var i = 0; i < hall.spines.length; i++) {
    hall.res['sp_' + hall.spines[i] + '_json'] = hall.resPath + "spine/" + hall.spines[i] + '/' + hall.spines[i] + '.json';
    hall.res['sp_' + hall.spines[i] + '_atlas'] = hall.resPath + "spine/" + hall.spines[i] + '/' + hall.spines[i] + '.atlas';
    hall.res['sp_' + hall.spines[i] + '_png'] = hall.resPath + "spine/" + hall.spines[i] + '/' + hall.spines[i] + '.png';
}

/**
 * 支持玩法按钮资源
 * @type {string}
 */
hall.btnRse = hall.resPath + 'image/wanfaBtn/';
hall.wanfaBtn = {
    WD: {
        btn_foucs: hall.btnRse + "btn_wd2.png",
        btn_normal: hall.btnRse + "btn_wd1.png",
    },
    QYLDS: {
        btn_foucs: hall.btnRse + "btn_qylds0.png",
        btn_normal: hall.btnRse + "btn_qylds1.png",
    },
    YZCHZ: {
        btn_foucs: hall.btnRse + "btn_yzchz0.png",
        btn_normal: hall.btnRse + "btn_yzchz1.png",
    },
    /*
    PDK: {
        btn_foucs: hall.btnRse + "create_btn6_1.png",
        btn_normal: hall.btnRse + "create_btn6.png",
    },
    JDDDZ: {
        btn_foucs: hall.btnRse + "create_btn15_1.png",
        btn_normal: hall.btnRse + "create_btn15.png",
    },
    LZDDZ: {
        btn_foucs: hall.btnRse + "create_btn16_1.png",
        btn_normal: hall.btnRse + "create_btn16.png",
    },
    DDZ: {
        btn_foucs: hall.btnRse + "create_btn17_1.png",
        btn_normal: hall.btnRse + "create_btn17.png",
    },
    ZHUANZHUAN: {
        btn_foucs: hall.btnRse + "create_btn9_1.png",
        btn_normal: hall.btnRse + "create_btn9.png",
    },
    CHANGSHA: {
        btn_foucs: hall.btnRse + "create_btn8_1.png",
        btn_normal: hall.btnRse + "create_btn8.png",
    },
    HONGZHONG: {
        btn_foucs: hall.btnRse + "create_btn7_1.png",
        btn_normal: hall.btnRse + "create_btn7.png",
    },
    */

};
_.forIn(hall.wanfaBtn, function (value, key) {
    hall.res[key + '_btn_foucs'] = value['btn_foucs'];
    hall.res[key + '_btn_normal'] = value['btn_normal'];
});


hall.wanfaMaps = {
    // HUAIHUA_MAJIANG: {
    //     mapid: app.map_id.HUAIHUA_MAJIANG
    // },
    HONGZHONG: {
        mapid: app.map_id.HONGZHONG
    },
    PDK: {
        mapid: app.map_id.PDK
    },
    HUAIHUA_HONGGUAIWAN: {
        mapid: app.map_id.HUAIHUA_HONGGUAIWAN
    },
    HUAIHUA_QUANMINGTANG: {
        mapid: app.map_id.HUAIHUA_QUANMINGTANG
    }
};
hall.wanfaTitle = {};
hall.dialect_res = {};



